package com.asm.entity.sys;

import com.asm.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author zhangyufu
 * @description 用户信息类，继承于BaseEntity类
 * 用于存储用户信息
 * @date 2019/7/9
 */
@Slf4j
@Data
@Accessors(chain = true)
@Entity
@Table(name = "t_user")
public class User extends BaseEntity {

    /**
     * 用户账号
     */
    @Column(name = "account", length = 20)
    private String account;

    /**
     * 用户密码
     */
    @Column(name = "password", length = 32)
    private String password;

    /**
     * 用户手机号码
     */
    @Column(name = "phone", length = 20)
    private String phone;

    /**
     * 用户的地址
     */
    @Column(name = "location")
    private String location;

}
